﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFormForIE6.Master" AutoEventWireup="true" CodeBehind="ShowStatusChart.aspx.cs" Inherits="WF.Web.Pages.WorkflowInfo.ShowStatusChart" %>
<%@ MasterType VirtualPath="~/MainFormForIE6.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Title" runat="server">
流程信息
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Other_head" runat="server">
<base target="_self1" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Path" runat="server">
查看流程信息
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Main" runat="server">
<div class="search">
<div class="ititle">
    <h4>流程状态：</h4>
</div>
<div id="status"  class="inputform">
 <table>
    <tr>
        <th style="width:50px">流程名：</th>
        <td colspan="3"><asp:Label ID="lblFolio" runat="server" Text=""></asp:Label></td>
    </tr>    
    <tr><td colspan="4">
        <asp:ListView ID="dataListView" runat="server" DataSourceID="" DataKeyNames="ID"
            EnableModelValidation="true" >
            <LayoutTemplate>
                <table cellspacing="0" class="Grid">
                    <tr>
                        <th width="33%">
                            当前步骤
                        </th>
                        <th width="33%">
                            当前审批人
                        </th>
                        <th width="34%">
                            待办事项到达时间
                        </th>                                                
                    </tr>
                    <asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Eval("CurWorkFlowStep")%>
                    </td> 
                    <td>
                        <%# Eval("CurAuditor")%>
                    </td>                                      
                    <td>
                        <%# Eval("ModDate","{0:yyyy-MM-dd hh:MM:ss}")%>&nbsp;
                    </td>                                    
                </tr>
            </ItemTemplate>
            <EmptyItemTemplate>
                <table class="Grid">
                    <tr>
                        <td>&nbsp;                            
                        </td>
                    </tr>
                </table>
            </EmptyItemTemplate>
        </asp:ListView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="GetApplyInstanceStateDetailByProcInstID" 
            TypeName="WF.ViewModels.WorkflowInfo.ShowStatusChartVM">           
        </asp:ObjectDataSource>
    </td></tr>
 </table>
</div>
<div class="ititle">
    <h4>查看流程图：</h4>
</div>
<div id="chart" class="inputform">
 <table>
    <tr>
        <th style="width:20%">
            <a href="ViewFlow.aspx?ProcInstID=<%=this.procInstID%>" target="flowCenter" title="以图片格式显示流程图" id="tvFlowTypet1">静态图形</a>
        </th>
        <th style="width:20%">
            <a href="<%=System.Configuration.ConfigurationManager.AppSettings["K2ViewWorkFlowURL"] + "&ProcessID=" + procInstID%>" target="flowCenter" title="可以直观形象地反映流程的状态" id="tvFlowTypet2">动态图形</a>
        </th>
        <th></th>
    </tr>
    <tr>
        <td colspan="3" style="width:100%;height:800">
            <iframe src="ViewFlow.aspx?ProcInstID=<%=this.procInstID%>" style="width:100%" id="flowCenter" name="flowCenter" scrolling="auto"   marginwidth="0" marginheight="0"></iframe>
        </td>
    </tr>
 </table>
</div>
</div>
</asp:Content>
